<?php

class Core_Controller_Admincp_Post_Index extends Nuo_Controller_Admincp
{
	function execute($request)
	{
		Nuo::setVar('breadcrum', array(
			'links' => array(
				'admincp' => 'AdminCP',
				'admincp/system' => 'System Setting',
			),
			'title' => 'Browse Post',
			'toolbar'=>'admincp/post',
		));

		$table = Nuo::getTable('core/post');

		$select = $table -> select() -> order('updated_at desc');

		$paging = Nuo_Paging::factory($select, $request -> getParam('page', 1));

		return  $this -> render(array('paging' => $paging, ));
	}

}
